@upload-prefix: ~"@{prefix}uploader";
.@{upload-prefix} {
  &-progress{
    .middle();
    left: 0;
    right: 0;
    z-index: 2;
  }
  &-image {
    &, &-empty{
      position: relative;
      float: left;
      height: 70px;
      width: 70px;
      display: inline-block;
      border-radius: @border-radius;
      margin-right: 10px;
      &:last-of-type{
        margin-right: 0px;
      }
    }
    &-background{
      position: absolute;
      left: 0px;
      right: 0px;
      top: 0px;
      bottom: 0px;
      z-index: 1;
      background-size: cover;
      border-radius: @border-radius;
      background-repeat: no-repeat;
      background-position: center;
    }
    &-operate{
      .h-func-fullscreen();
      background: rgba(0, 0, 0, 0.6);
      z-index: 1;
      opacity: 0;
      text-align: center;
      border-radius: @border-radius;
      >div{
        .middle();
        width: 100%;
        left: 0;
        text-align: center;
        color: @white-color;
        >span{
          cursor: pointer;
          color: @gray3-color;
          &:hover{
            color: @white-color;
          }
        }
      }
      &-pointer {
        cursor: pointer;
      }
    }

    &:hover &-operate{
      transition: @transition-time;
      opacity: 1;
    }

    &-empty{
      border: 1px dashed @gray-color;
      color: @gray-color;
      transition: @transition-time;
      cursor: pointer;
      i{
        font-size: 25px;
        .middle-center();
      }
      &:hover{
        border-color: @primary-color;
        color: @primary-color;
      }
    }

    &-container{
      display: inline-block;
    }

    &-container &-operate{
      cursor: pointer;
    }
  }

  &-images{
    &-container{
      .h-func-clearfix();
    }
  }

  &-files{
    position: relative;
    margin-top: 5px;
    font-size: @font-size-mini;
    color: @gray-color;
  }
  &-file{
    position: relative;
    line-height: @input-height;
    &-progress{
      padding-left: 5px;
    }
    &-info{
      padding-right: 15px;
      .h-func-text-ellipsis();
      .h-func-li-hover();
      padding-left: 5px;
    }
    .h-icon-trash{
      // display: none;
      right: 5px;
    }

    // &:hover .h-icon-trash{
    //   display: block;
    // }
  }

  &-drop-element{
    padding: 15px;
    color: @dark-color;
    border-radius: @border-radius;
    border: 1px dashed @gray1-color;
    cursor: pointer;
    &:hover{
      border-color: @primary-color;
    }
  }

  &-drop-element&-dragging{
    border-color: @primary-color;
  }
}